<%@ include file="/taglibs.jsp"%>
<jsp:directive.page import="java.util.Random"/>
<jsp:directive.page import="java.util.Date"/>
<jsp:directive.page import="java.util.List"/>
<jsp:directive.page import="java.util.Iterator"/>
<jsp:directive.page import="com.winterwar.base.Registration"/>

<%
	
	List<Registration> regs = (List<Registration>) request.getAttribute("registrations");
	int pending = 0;
	int approved = 0;
	int inReview = 0;
	int rejected = 0;
	
	for (Iterator it=regs.iterator(); it.hasNext(); ){
		Registration reg = (Registration) it.next();
		if(reg.getStatus().intValue() == 1) pending++;
		if(reg.getStatus().intValue() == 2) inReview++;
		if(reg.getStatus().intValue() == 3) approved++;
		if(reg.getStatus().intValue() == 4) rejected++;
	}
%>

<title>Winter War Administration - Registration Status</title>

<p> You currently have <%=pending %> registrations <a href="registration.do?method=listByConID&amp;conID=${conID }&amp;status=1">pending review</a>.</p>
<p> You currently have <%=inReview %><a href="registration.do?method=listByConID&amp;conID=${conID }&amp;status=2"> registrations in review status</a>.</p>
<p> You currently have <%=approved %> <a href="registration.do?method=listByConID&amp;conID=${conID }&amp;status=3">approved registrations</a>. </p>
<p> You Currently have <%=rejected %><a href="registration.do?method=listByConID&amp;conID=${conID }&amp;status=4"> rejected registrations</a>.</p>
<br>
<p> <a href="registration.do?method=registrationReportSheet&amp;conID=${conID }&amp;status=3">Generate Registration Sheets</a>  |  <a target="new" href="reports/RegDesk.pdf">View</a></p>
<p> <a href="registration.do?method=registrationCheatSheet&amp;conID=${conID }&amp;status=3">Generate Registration Cheat Sheets</a>  |  <a target="new" href="reports/RegCheat.pdf">View</a></p>
<p> <a href="registration.do?method=eventSignUpSheets&amp;conID=${conID }&amp;status=3">Generate Event Signup Sheets</a>  |  <a target="new" href="reports/SignupSheets.pdf">View</a></p>
<p> <a href="registration.do?method=registrationPaymentsOwed&amp;conID=${conID }&amp;status=3">Generate Money Owed Report</a>  |  <a target="new" href="reports/OweReport.pdf">View</a></p>
